package com.inventory.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 库存信息实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Inventory {

    // 库存编号
    private Integer iid;
    // 菜品编号
    private Integer fid;
    // 库存位置
    private String location;
    // 库存数量
    private Integer count;
    // 库存供应商
    private String supplier;
    // 首批过期日期
    private String exptime;

    /**
     * 带参构造函数
     */
    public Inventory(Integer iid) {
        this.iid = iid;
    }
    public Inventory(Integer iid, Integer fid) {
        this.iid = iid;
        this.fid = fid;
    }
}